﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WordRacer.Domain.Shared
{
  public interface IEntity<T>
  {
    /// <summary>
    /// Entities compare by identity, not by attributes.
    /// </summary>
    /// <param name="other">The other entity.</param>
    /// <returns>true if the identities are the same, regardles of other attributes.</returns>
    bool SameIdentityAs(T other);
  }
}
